package com.project.picxg.service;

import com.project.picxg.entity.Image;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

public interface StorageService {
    public String upload(File file) throws IOException;

    public String upload(InputStream is, String filename) throws IOException;

    //获取网络资源
    public Image getUrl(String filename);


}
